﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>管理後臺</title>
    <link href="css/common.css" rel="stylesheet" type="text/css" />
    <link href="css/index.css" rel="stylesheet" type="text/css" />

    <script src="../javascript/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
    jQuery(document).ready(function() { 
        $(".mouseout div img").mousemove(function(){
            $(this).parent().parent().addClass("mouseover");
        }); 
        $(".mouseout div img").mouseout(function(){
            $(this).parent().parent().removeClass("mouseover");
        }); 
    });
    function ShowLeftMenus(path,obj)
    {
        document.getElementById("menuIframe").src=path;
        $("#menuIframe").height($(document).height()+100);
        $(".mouseout").removeClass("selected");
        $(obj).parent().addClass("selected");
    }
    
    function ShowContent(path,obj)
    {
        document.getElementById("IframeOper").src=path;
        $("#menuIframe").height($(document).height()+100);
        $(".mouseout").removeClass("selected");
        $(obj).parent().addClass("selected");
    }
    
    function tabBackgroud(obj)
    {
        $(".mouseout").removeClass("mouseover");
         $(obj).addClass("mouseover");
    }
    </script>
</head>
<body>
    <div class="top">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="8"  style="background:url(images/index-top-l.gif)">
                        <img alt="" src="images/index-top-l.gif" width="8" height="98" />
                    </td>
                    <td height="98" style="background:url(images/index-top-c.gif)">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td height="30">
                                        <table width="100%" height="30" border="0" cellspacing="0" cellpadding="0">
                                            <tbody>
                                                <tr>
                                                    <td align="left">
                                                        <strong>內容管理系統</strong>
                                                    </td>
                                                    <td align="right" valign="top">
                                                        <input type="button" title="安全退出" value="" class="close-0" onclick="chkLogout();"
                                                            onmouseover="this.className='close-1'" onmouseout="this.className='close-0'" />
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="60">
                                        <div class="floatleft">
                                            &nbsp;</div>
                                        <div id="coolnav" class="floatleft" style="overflow: hidden;">
                                            <table border="0" cellpadding="0" cellspacing="0">
                                                <tbody>
                                                    <tr>
                                                        <td id="toptab3" class="mouseout">
                                                            <div style="cursor: pointer" onclick="ShowContent('Aspx.aspx',this);">
                                                                <img src="images/index-nav-img-1.gif" alt="" /><br/>
                                                                後臺首頁</div>
                                                        </td>
                                                        <td id="toptab2" class=" mouseout" style="">
                                                            <div style="cursor: pointer"  onclick="ShowLeftMenus('Left/TemplateManage.aspx',this);">
                                                                <img src="images/index-nav-img-4.gif" alt="" /><br/>
                                                                模板管理</div>
                                                        </td>
                                                        <td id="toptab5" class="mouseout">
                                                            <div style="cursor: pointer"  onclick="ShowLeftMenus('Left/ContentManage.aspx',this);">
                                                                <img src="images/index-nav-img-7.gif" alt="" /><br/>
                                                                內容管理</div>
                                                        </td>
                                                        <td id="toptab0" class="mouseout" style="">
                                                            <div style="cursor: pointer"  onclick="ShowLeftMenus('Left/SystemManage.aspx',this);">
                                                                <img src="images/index-nav-img-2.gif" height="40px" width="64px" alt="" /><br/>
                                                                系統管理</div>
                                                        </td>
                                                    </tr>
                                                </tbody>
                                            </table>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td height="8">
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td width="8" style="background:url(images/index-top-r.gif)">
                        <img alt="" src="images/index-top-r.gif" width="8" height="98" />
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <div class="side">
        <iframe name="menuIframe" id="menuIframe" height="100%" width="100%" frameborder="0" marginheight="0" marginwidth="0" 
            src=""></iframe>
        </div>
    <div class="main">
            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
                <tbody>
                    <tr>
                        <td width="*" height="100%" valign="top">
                            <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2">
                                <tbody>
                                    <tr>
                                        <td width="100%" height="100%" valign="top">
                                            <iframe name="IframeOper" id="IframeOper" style="width:100%; height:700px" width="100%" frameborder="0"
                                                marginheight="0" marginwidth="0" src=""></iframe>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </td>
                        <td bgcolor="#4B6995" style="width: 1px;">
                        </td>
                    </tr>
                </tbody>
            </table>
    </div>
    <div class="bottom">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="8" style="background:url(images/index-bottom-l.gif);line-height: 31px;">
                        <img src="images/index-bottom-l.gif" width="8" height="31">
                    </td>
                    <td height="31" style="background:url(images/index-bottom-c.gif);line-height: 31px;">
                        <div class="floatleft">
                           &nbsp;</div>
                        <div class="floatright" id="time">
                            <span>&nbsp;</span>
                        </div>
                    </td>
                    <td width="8" style="background:url(images/index-bottom-r.gif);line-height: 31px;">
                        <img src="images/index-bottom-r.gif" width="8" height="31">
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>
